<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
td{font-family:source code pro,consolas"微软雅黑", Verdana, Geneva, sans-serif;
font-size:18px;}
.kh{
	color: #009;}
	.myfunc{
		color:#903;
		font-size:18px;
		}
</style>
<script src="jquery-2.0.3.js"  language="javascript" ></script>
<script>
$().ready(function(){
        $(window).keydown(function(event){
	        if(event.keyCode==221 || event.keyCode ==13)
			 {
			  $('.num').toggle();
			 }
			 $c=$("#idframset",parent.document);
			 //.contents().find('frameset'));
			 if(event.keyCode ==45)
			{
			
              $c.each(function(){
			    this.cols="30,*";
				})
			}
	       if(event.keyCode ==46)
			{
                 $c.each(function(){
				     this.cols="500,*";
				 })
			}
			
	     
	     })
		
})
</script> 
<script>
function _n(){
if(window._2_ != "hide"){
     $('.num').hide();
	 window._2_="hide";
  }else{
	  $('.num').show(); 
	  window._2_="show";
  }
}

function prop_erty(Obj) { 
    var PropertyList = ''; 
    for(i in Obj){ 
   //  if(Obj.i != null) {
      PropertyList = PropertyList +'['+ i + ']属性：' + Obj.i + '<br>\r\n'; 
   //  } else {
     PropertyList = PropertyList +'['+ i + '] 方法:'+_high(Obj.getAttribute(i))+'<br>\r\n';} 
	// }
	 return  PropertyList;
}
window.onload=function(){
	setTimeout(
	
    function(){   
	var  eles=$('.num');
	
 
	}
,1000	
)
	
	
}
function __(){
    document.getElementById('keycode').innerHTML="<b>"+event.keyCode+"</b>";	
	if(event.keyCode==221 || event.keyCode ==13)
	{_n();}
	_bs("a");
}


</script>
<title>dx_0002</title>
<style>
body{font-size:15px;}
</style>
</head>

<body onKeyDown="__();">
<input name="" type="button" value="行号显示/隐藏" onClick="_n();">
<input name="" type="button" value="info()" onClick="info();"><span id="keycode"></span>回车/]为功能键
<div style="display:none;"><a href="?filename=1.cpp" >1.cpp</a>
<a href="?filename=I:/AppServ/www/_doll/inc.php">I:/AppServ/www/_doll/inc.php</a></div>
<?php
require_once('../inc.php'); 

ini_set("memory_limit","100M");
set_time_limit(1800*1000);

$path=_default_em($_REQUEST["filename"],"1.cpp");
if(preg_match("/(\.php|\.asp|\.jsp|\.txt|\.css|\.js|\.html|\.avs|\.htm|\.cpp|\.h|\.xml|\.c)$/",$path)){
$fcont=_code_hl($path);
_ec($fcont,false);
echo "<b>当前文件所在路径为：".$filename."</b>";
  }else{
	  echo "不是文本内容不显示";
}











 

 




function _fn_ec($arr){
    $str="<pre>";
	foreach($arr as $k=>$v){
	$str.=$v;
	}
	$str.="</pre>";
	return $str;
}
?>
<div id="a"  ></div>
</body>
</html>